package org.huamoxi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.ss.formula.functions.T;
import org.huamoxi.entity.User;
import org.huamoxi.param.LoginParam;
import org.huamoxi.result.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface LoginService extends IService<User> {
    /**
     * 账号密码登录
     */
    Result<T> login(LoginParam param, HttpServletRequest request, HttpServletResponse response);

    /**
     * 刷新token
     */
    String refreshToken(String token);
}
